@keyframes rotate {
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.contain-zheng {
    top: 150px;
    left: -13px;
    position: relative;
    perspective: 1600px;
    /*animation: rotate-frame 30s linear infinite;*/
}

.box {
    animation: rotate 10s ease 0s normal none infinite running;
    height: 100px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    width: 100px;
}

.face {
    backface-visibility: hidden;
    background-color: #fae48c;
    height: 100px;
    /*opacity: 0.6;*/
    position: absolute;
    width: 100px;
}

.box .one {
    background-color: #607D8B;
    transform: rotateX(90deg) translateZ(50px);
}

.box .two {
    background-color: #e91e63;
    transform: translateZ(50px);
}

.box .three {
    transform: rotateY(90deg) translateZ(50px);
    background-color: #9c27b0;
}

.box .four {
    transform: rotateY(180deg) translateZ(50px);
    background-color: #2196f3;
}

.box .five {
    transform: rotateY(-90deg) translateZ(50px);
    background-color: #ff5722;
}

.box .six {
    transform: rotateX(-90deg) translateZ(50px) rotate(180deg);
    background-color: #4caf50;
}



#leafContainer {
    position: absolute;
    width: 100%;
    height: 100%;
}

@-webkit-keyframes fade {
    0% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes drop {
    0% {
        -webkit-transform: translate(0px, -50px);
    }

    100% {
        -webkit-transform: translate(0px, 650px);
    }
}

@-webkit-keyframes clockwiseSpin {
    0% {
        transform: rotate(-150deg);
    }
    50%{
        transform: rotate(150deg);
    }
    100% {
        transform: rotate(-150deg);
    }
}

@-webkit-keyframes counterclockwiseSpinAndFlip {
    0% {
        transform: scale(-1, 1) rotate(150deg);
    }
    50%{
        transform: scale(-1, 1) rotate(-150deg);
    }
    100% {
        transform: scale(-1, 1) rotate(150deg);
    }
}